package ma.cdm.compteRendu.bo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * Unite entity. @author Limouri Anouar
 */
@Entity
@Table(name = "unite", catalog = "gestioncompterendu1")
public class Unite implements java.io.Serializable {

	// Fields

	private String codeunite;
	private String libelleunite;

	// Constructors

	/** default constructor */
	public Unite() {
	}

	/** full constructor */
	public Unite(String libelleunite) {
		this.libelleunite = libelleunite;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "CODEUNITE", unique = true, nullable = false, length = 100)
	public String getCodeunite() {
		return this.codeunite;
	}

	public void setCodeunite(String codeunite) {
		this.codeunite = codeunite;
	}

	@Column(name = "LIBELLEUNITE", length = 2000)
	public String getLibelleunite() {
		return this.libelleunite;
	}

	public void setLibelleunite(String libelleunite) {
		this.libelleunite = libelleunite;
	}

}